#ifndef EVENTMANAGER_H
#define EVENTMANAGER_H

#include "Window.h"

class EventManager
{
    static EventManager* _instance;
    EventManager();
public:
    static EventManager* instance();
    virtual ~EventManager();

    sf::Event& event();

    void setWindow(Window* window);

    bool keyPressed(sf::Keyboard::Key key);
    bool mouseClicked(sf::Mouse::Button button);

    sf::Vector2i mouseCoords();

private:
    Window* _window;
    sf::Event _event;
};

#endif // EVENTMANAGER_H
